/*
 * SoundEngine.h
 *
 *  Created on: 2011/12/30
 *      Author: nobnak
 */

#ifndef SOUNDENGINE_H_
#define SOUNDENGINE_H_

// OpenSLES
#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>

#include "Recorder.h"

class SoundEngine {
public:
	static SoundEngine* get();
	static void shutdown();
	Recorder* makeRecorder(int nBufferSamples, int nBuffers);
private:
	static SoundEngine *instance;
	SLObjectItf engineObject;
	SLEngineItf engineEngine;

	SoundEngine();
	virtual ~SoundEngine();
};

#endif /* SOUNDENGINE_H_ */
